<?php

namespace app\api\controller;

use app\common\controller\Api;

/**
 * 首页接口
 */
class News extends Api
{

    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * 首页
     * 
     */
    public function index()
    {
        //$this->success('请求成功');
        $newslist = array(
            '0' => array(
                'id' => 1,
                'title' => 'EasyCall呼叫系统上线！',
                'content' => 'EasyCall呼叫系统上线！',
                'url' => 'javascript:;',
                'createtime' => 1522141222,
                'updatetime' => 1522141222,
                'weigh' => 1,
                'status' => 'normal',
                'status_text' => '正常'
            )
        );
        $result = array('new' => 1, 'url' => 'javascript:;', 'newslist' => $newslist);
        echo json_encode($result);
    }

}
